import Vue from "vue";
import VueRouter from "vue-router";


Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: 'mainPage',
  },
  {
    path: "/mainPage",
    name: "mainPage",
    component: () => import("../views/mainPage.vue")
  },
  {
    path: "/breakPage",
    name: "breakPage",
    component: () => import("../views/breakPage.vue")
  },
  {
    path: "/zhubian",
    name: "zhubian",
    component: () => import("../views/zhubian.vue")
  },
  {
    path: "/ai",
    name: "ai",
    component: () => import("../views/ai.vue")
  },
  {
    path: "/page-110kV",
    name: "page-110kV",
    component: () => import("../views/page-110kV.vue")
  },
  {
    path: "/map",
    name: "map",
    component: () => import("../views/indexMap.vue")
  },
  {
    path: "/muxianPage",
    name: "muxianPage",
    component: () => import("../views/muxianPage.vue")
  },
    {
    path: "/mxsb500",
    name: "mxsb",
    component: () => import("../views/mxsb_500.vue")
  },
  {
    path: "/mxsb220",
    name: "mxsb_220",
    component: () => import("../views/mxsb_220.vue")
  },
  {
    path: "/breakPage_220",
    name: "breakPage_220",
    component: () => import("../views/breakPage_220.vue")
  },
    {
    path: "/breakPage_500",
    name: "breakPage_500",
    component: () => import("../views/breakPage_500.vue")
  },

];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
